package cn.jdemo.io.compare;

import cn.jdemo.io.compare.mapped.BigFileHelper;

import java.util.Random;

public class App
{
    public static void main( String[] args )
    {
        int count = Integer.parseInt(args[1]);
        for (int i = 0; i < count; i++) {
            String bigFileName = args[2] + i + ".txt";
            BigFileHelper.fileWrite(bigFileName,getFixStr(2000000),0);
        }
    }
    public static String getFixStr(long n) {
        StringBuilder randomStr = new StringBuilder();
        for (long i = 0; i < n; i++) {
            randomStr.append("aaaasdfaaaaaaayyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyfffffaaaaaaaaaaaaaaasdfsdfsdfsdfsdfdafsdf");
        }
        return randomStr.toString();
    }
}
